<?php if(is_array($this->data)){foreach($this->data as $key=>$val){?>
    <<?php echo $key;?>><![CDATA[
    <?php if(is_array($val)){?>
        <?php 
        echo $this->partial('layout_result-xml-data.phtml', array(
            'data' => $val,
        ));
        ?>
    <?php }else{?>
        <?php echo $val;?>
    <?php }?>
    ]]></<?php echo $key;?>>
<?php }}?>